Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Fix rand_weighted not using the current state #89619

Merged
1 commit merged into from
Mar 24, 2024

Conversation

AThousandShips
Copy link
Member

The method incorrectly used Math::randf instead of randf

The method incorrectly used `Math::randf` instead of `randf`
@AThousandShips AThousandShips added this to the 4.3 milestone Mar 17, 2024
@AThousandShips AThousandShips requested a review from a team as a code owner March 17, 2024 18:23
@akien-mga akien-mga closed this pull request by merging all changes into godotengine:master in 06abc86 Mar 24, 2024
akien-mga added a commit that referenced this pull request Mar 24, 2024
[Core] Fix `rand_weighted` not using the current state
@akien-mga
Copy link
Member

Thanks!

@AThousandShips AThousandShips deleted the rand_fix branch March 24, 2024 08:44
@AThousandShips
Copy link
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rand_weighted uses the global RNG state instead of the instance one
5 participants